package com.example.springbott.wx_controller;

import com.example.springbott.bean.BaseRespVo;
import com.example.springbott.bean.MarketIssue;
import com.example.springbott.bean.common.BasePageInfo;
import com.example.springbott.bean.common.CommonData;
import com.example.springbott.wx_service.WXIssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author silic xia
 * @since 2022/11/23 16:43
 */
@RestController
@RequestMapping("wx/issue")
public class WXIssueController {

    @Autowired
    WXIssueService wxIssueService;

    /**
     *  帮助中心
     *
     * @param /wx/issue/list?page=1&limit=10
     * @return
     * @author  silic xia
     * @since 2022/11/23 17:03
     */
    @RequestMapping("list")
    public BaseRespVo wxIssueList(BasePageInfo info){
        CommonData<MarketIssue> data = wxIssueService.wxIssueList(info);
        return BaseRespVo.ok(data);
    }
}

